package com.atguigu.Example.Sevice.Impl;

import com.atguigu.Example.Dao.StudentDao;
import com.atguigu.Example.Pojo.Student;
import com.atguigu.Example.Sevice.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package com.Example.Sevice.Impl
 * @date 2024/4/22 下午2:50
 */
@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentDao studentDao;
    @Override
    public List<Student> findAll() {
        List<Student> students = studentDao.findAll();
        return students;
    }
}
